x86/MSI: fix locking in pci_restore_msi_state()
authorJan Beulich <jbeulich@suse.com>
Mon, 14 Oct 2013 07:07:02 +0000 (09:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 14 Oct 2013 07:07:02 +0000 (09:07 +0200)
commitdfd1fe582367933924a1e3318ac0a0da7d2bc7e3
treeed54c9923731af4e07273c43fb0bd896242bec4b
parentef55257bc81204e34691f1c2aa9e01f2d0768bdd
x86/MSI: fix locking in pci_restore_msi_state()

Right after the loop the lock is being dropped, so all loop exits
should happen with the lock still held.

Reported-by: Kristoffer Egefelt <kristoffer@itoc.dk>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Kristoffer Egefelt <kristoffer@itoc.dk>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/msi.c